#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main(){
	int a, b, c;
	scanf("%d %d %d", &a, &b, &c);
	if (a >= b&&a >= c){
		if (b >= c){
			printf("%d->%d->%d", c, b, a);
		}
		else if (c >= b){
			printf("%d->%d->%d", b, c, a);
		}
	}
	else if (b >= a&&b >= c){
		if (a >= c){
			printf("%d->%d->%d", c, a, b);
		}
		else if (c >= a){
			printf("%d->%d->%d", a, c, b);
		}
	}
	else if (c >= a&&c >= b){
		if (a >= b){
			printf("%d->%d->%d", b, a, c);
		}
		else if (b >= a){
			printf("%d->%d->%d", a, b, c);
		}
	}
	return 0;
}